<?php
App::uses('AppModel', 'Model');
/**
 * Match Model
 *
 * @property Stadium $Stadium
 * @property Tournament $Tournament
 * @property Country $Opponent_Country
 * @property Bench $Bench
 * @property Event $Event
 * @property LineUp $LineUp
 */
class Match extends AppModel {

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Stadium' => array(
			'className' => 'Stadium',
			'foreignKey' => 'stadium_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Tournament' => array(
			'className' => 'Tournament',
			'foreignKey' => 'tournament_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Opponent_Country' => array(
			'className' => 'Country',
			'foreignKey' => 'opponent',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Bench' => array(
			'className' => 'Bench',
			'foreignKey' => 'match_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Event' => array(
			'className' => 'Event',
			'foreignKey' => 'match_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'LineUp' => array(
			'className' => 'LineUp',
			'foreignKey' => 'match_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
